﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WFONE
{
    public partial class Double03 : Form
    {
        CDeDataDl cdedata = Double01.cdedata;
        public Double03()
        {
            InitializeComponent();
        }
        public void cDoubleleAlg()
        {
            CInputListDl cintput = CList.cInputListDl;
            COutputListDl coutput = CList.cOutputListDl;
        /*
        缺计算过程
        */         
        }
        double DMAX = 99999.999999;
        private void ResultShow()//显示计算结果
        {
            COutputListDl output = CList.cOutputListDl;
            try
            {
                tBU10.Text = output.dU10.ToString();
                tBAngle10.Text = output.dAngle1.ToString();
                tBG1x.Text = output.dG1x.ToString();
                tBU20.Text = output.dU10.ToString();
                tBAngle20.Text = output.dAngle2.ToString();
                tBG2x.Text = output.dG2x.ToString();

                if (output.dB11 == DMAX || output.dB12 == DMAX||output.dB21 == DMAX || output.dB22 == DMAX)
                {
                    tBB11.Text = "ERROR";
                    tBB12.Text = "ERROR";
                    tBB21.Text = "ERROR";
                    tBB22.Text = "ERROR";
                    OutOfBalance();
                }
                else
                {
                    tBB11.Text = output.dB11.ToString();
                    tBB12.Text = output.dB12.ToString();
                    tBB21.Text = output.dB21.ToString();
                    tBB22.Text = output.dB22.ToString();
                }
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }
        private void OutOfBalance()
        {

        }

    }

}
